import { type App } from 'vue';
import { ConfigProvider, Button, Input, message } from 'ant-design-vue';

export function setupAntd(app: App) {
  app.use(ConfigProvider);
  app.use(Button);
  app.use(Input);

  message.config({
    top: `45px`,
    duration: 2,
    maxCount: 2,
    rtl: true,
    prefixCls: 'msg'
  });
}
